﻿#pragma once

#include <QLineEdit>

class LineEdit_TurnTableAcceleration : public QLineEdit
{
  Q_OBJECT

private:
  float turnTableAccelerationUpperLimit = 100;//转台加速度上限（绝对值）
  float turnTableAccelerationLowerLimit = 1;//转台加速度下限（绝对值）

  int accuracy = 4;
public:
  LineEdit_TurnTableAcceleration(QWidget *parent);
  ~LineEdit_TurnTableAcceleration();
  float getAcceleration();
  void setAcceleration(float acceleration);
private slots:
  void slot_accelerationLineEditFinished();
  void slot_updatePlaceHolder();
public:
  float getTurnTableAccelerationUpperLimit();
  void setTurnTableAccelerationUpperLimit(float  turnTableAccelerationUpperLimit);
  float getTurnTableAccelerationLowerLimit();
  void setTurnTableAccelerationLowerLimit(float turnTableAccelerationLowerLimit);
  int getAccuracy();
  void setAccuracy(int accuracy);
};
